@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&family=Inter:wght@100..900&family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap');

:root {
  /* Colors */
  --gray-0: #f9f9f9;
  --gray-05: #f6f6f6;
  --gray-1: #eee;
  --gray-2: #e6e6e6;
  --gray-3: #ccc;
  --gray-4: #bbb;
  --gray-5: #999;
  --gray-6: #575757;
  --gray-65: #525252;
  --gray-7: #2c2c2c;
  --gray-8: #252525;
  --gray-9: #1f1f1f;
  --gray-10: #181818;

  --green: #5eddac;
  --orange: #ff7e22;
  --yellow: #fca62a;
  --light-yellow: #fcd37a;
  --pink: #f57ad0;
  --lavender: #a180f9;
  --violet: #ff75f8;
  --blue: #59abf7;
  --purple: #673ece;
  --indigo: #4e5dff;
  --indigo-dark: #431dee;
  --indigo-light: #a6aaff;
  --indigo-muted: #f1f2fd;

  /* Font family */
  --font-family-base: 'Inter', -apple-system, BlinkMacSystemFont,
    'Helvetica Neue', Arial, sans-serif;
  --font-family-monospace: 'IBM Plex Mono', monospace;
  --font-family-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont,
    'Helvetica Neue', Arial, sans-serif;
  --font-family-nav: 'Inter', -apple-system, BlinkMacSystemFont,
    'Helvetica Neue', Arial, sans-serif;

  /* Font color */
  --font-color-base: var(--gray-7);
  --font-color-muted: var(--gray-6);
  --font-color-heading: var(--gray-9);
  --font-color-heading3: var(--gray-8);
  --font-color-bright: var(--gray-9);
  --font-color-hero-description: var(--gray-7);

  /* Borders */
  --border-color: var(--gray-3);
  --border-color-hover: var(--gray-4);
  --border-radius: 12px;

  /* Elements */
  --background-color: var(--gray-2);
  --navbar-background-color: var(--gray-0);
  --card-background-color: var(--gray-0);
  --button-border-color-hover: var(--gray-5);
  --button-border-color: var(--gray-4);
  --button-background-color: var(--gray-05);
  --marker: var(--border-color-hover);
  --link: var(--indigo);
  --link-color-hover: var(--indigo-muted);
  --post-color-hover: var(--indigo-dark);
  --navbar: var(--gray-1);
  --navbar-border: var(--gray-2);
  --navbar-color: var(--gray-8);
  --navbar-color-hover: var(--gray-9);
  --navbar-background-hover: var(--gray-1);
  --year: var(--green);
  --star: var(--yellow);
  --post-time-color: var(--gray-6);
  --card-time-color: var(--gray-6);
  --highlight-color: var(--yellow);
  --blockquote-background: var(--indigo-muted);
  --file-background: #eee;
  --inline-code-background-color: var(--gray-0);
  --category-link: #dd4eb2;
  --scrollbar-color: var(--gray-3);
  --scrollbar-track: var(--gray-4);

  /* Sizs */
  --content-width: 860px;
  --content-width--small: 560px;
  --content-width--medium: 700px;
  --navbar-height-small: 60px;

  --primary-color: var(--indigo);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-family: var(--font-family-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  line-height: 1.6;
  font-size: 16px;
  font-weight: normal;
  font-kerning: normal;
}

body {
  margin: 0;
  padding: 0;
  background: var(--background-color);
}

a {
  color: var(--link);
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--indigo);
}

p,
ul,
ol,
ul,
table,
blockquote {
  font-size: 1rem;
  color: var(--font-color-base);
}

@media screen and (min-width: 700px) {
  p,
  ul,
  ol,
  ul,
  table,
  blockquote {
    font-size: 1.1rem;
    line-height: 1.625;
  }
}

p,
ul,
ol {
  -webkit-font-smoothing: auto;
  line-height: 1.625;
  margin-top: 0;
  margin-bottom: 1.5rem;
}

ul {
  padding-left: 1rem;
}

ul li ul,
ol li ol {
  margin-top: 0.5rem;
  margin-bottom: 0;
}

li {
  line-height: 1.5;
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
}

li::marker {
  font-size: 1.1rem;
  line-height: 1;
  color: var(--marker);
}

main {
  margin-top: var(--navbar-height-small);
}

img {
  display: block;
  max-width: 100%;
}

mark {
  font-weight: 600;
  background: #fdd94a;
}

u {
  text-decoration-line: underline;
  text-decoration-thickness: 2px;
}

time {
  display: block;
  font-family: var(--font-family-monospace);
  letter-spacing: -0.03rem;
  font-size: 0.9rem;
  white-space: nowrap;
}

/* Blockquote */

blockquote {
  margin: 2rem 0;
  border: 1px solid var(--indigo-light);
  margin-left: 0;
  padding: 1.5rem;
  background: var(--blockquote-background);
  border-radius: var(--border-radius);
}

blockquote p {
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
}

blockquote *:last-child {
  margin: 0;
}

blockquote ul {
  margin-top: 1.5rem;
}

blockquote strong {
  text-decoration-line: underline;
  text-decoration-thickness: 2px;
  font-weight: 700;
}

blockquote.quotation {
  background: transparent;
  border: none;
  border-left: 12px solid var(--border-color);
  border-radius: 0;
  font-family: 'Georgia';
  font-style: italic;
  font-size: 1.1rem;
  padding: 0 0 0 1.5rem;
  color: var(--font-color-base);
}

blockquote.quotation cite {
  margin-top: 1rem;
  font-style: normal;
  text-transform: uppercase;
  font-size: 0.9rem;
  display: block;
}

/* Headings */

h1,
h2,
h3,
h4,
h5 {
  color: var(--font-color-heading);
  line-height: 1.1;
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-weight: 600;
  scroll-margin-top: 6rem;
  font-family: var(--font-family-heading);
}

h1:not(:first-child),
h2:not(:first-child),
h3:not(:first-child),
h4:not(:first-child) {
  margin-top: 3.5rem;
}

h2 + h3 {
  margin-top: 1.5rem !important;
}

h2 {
  font-size: 1.7rem;
  margin: 0 0 1rem;
  font-weight: 700;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border-color);
  font-family: var(--font-family-nav);
  color: var(--font-color-heading);
}

h2.year {
  border-bottom: none;
  font-size: 1.9rem;
}

h2 code {
  font-size: 1.7rem !important;
}

h3 {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: var(--font-color-heading3);
}

h3 code {
  font-size: 1.4rem !important;
}

@media screen and (min-width: 700px) {
  main {
    margin-top: 8rem;
  }

  h2 {
    font-size: 2rem;
  }

  h2 code {
    font-size: 1.9rem !important;
  }

  h2.year {
    border-bottom: none;
    font-size: 2.3rem;
  }

  h3 {
    font-size: 1.6rem;
  }

  h3 code {
    font-size: 1.7rem !important;
  }
}

h4,
h4 code {
  margin-bottom: 1rem;
  font-size: 1rem;
  text-transform: uppercase;
  font-weight: 700;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

h5 {
  color: var(--font-color-base);
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 700;
}

h2.home-heading {
  margin-top: 2rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  padding: 0;
}

h2.home-heading .title {
  font-size: 1.7rem;
  margin-bottom: 0;
  font-family: var(--font-family-base);
  font-weight: 700;
}

@media screen and (min-width: 700px) {
  h2.home-heading {
    gap: 2rem;
  }

  h2.home-heading .title {
    font-size: 2rem;
  }
}

/* Table */

table {
  border: 1px solid var(--border-color);
  display: table;
  border-collapse: separate;
  border-spacing: 0;
  max-width: 100%;
  overflow-x: auto;
  width: 100%;
  font-size: 1rem;
  line-height: 1.5;
  margin-top: 0;
  margin-bottom: 1.5rem;
  border-radius: var(--border-radius);
}

td {
  border-bottom: 1px solid var(--border-color);
}

td,
th {
  hyphens: auto;
  padding: 0.5rem;
  text-align: left;
  border-color: var(--border-color);
}

th {
  background: var(--card-background-color);
  border-bottom: 2px solid var(--border-color);
}

th:first-of-type {
  border-top-left-radius: var(--border-radius);
}

th:last-of-type {
  border-top-right-radius: var(--border-radius);
}

@media screen and (min-width: 700px) {
  td,
  th {
    padding: 0.5rem 1rem;
  }
}

/* Containers */

.container {
  max-width: var(--content-width);
  padding: 0 1rem;
  margin-left: auto;
  margin-right: auto;
}

@media screen and (min-width: 700px) {
  .container {
    padding: 0 2rem;
  }
}

.layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.segment {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.segment.small {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.segment.large {
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.segment.first {
  margin-top: 3rem;
}

@media screen and (min-width: 700px) {
  .segment {
    margin-top: 3rem;
    margin-bottom: 3rem;
  }

  .segment.large {
    margin-top: 5rem;
    margin-bottom: 5rem;
  }

  .segment.small {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
  }
}

/* Buttons */

button,
a.button {
  background: var(--button-background-color);
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1rem;
  font-family: var(--font-family-nav);
  line-height: 1;
  border-radius: var(--border-radius);
  font-size: 0.9rem;
  cursor: pointer;
  font-weight: 500;
  color: var(--font-color-base);
  border: 1px solid var(--button-border-color);
  gap: 0.25rem;
  white-space: nowrap;
  transition: transform 0.2s ease-in-out;
}

button.large,
a.button.large {
  padding: 1rem 1.75rem;
  font-size: 1.1rem;
  font-weight: 400;
}

button.small,
a.button.small {
  padding: 0.5rem 0.6rem;
  font-size: 0.9rem;
}

button img,
a.button img {
  min-height: 20px;
  min-width: 20px;
  max-height: 20px;
  margin-right: 0.25rem;
}

button.primary,
a.button.primary {
  border-color: var(--primary-color);
  font-weight: 700;
}

button.primary:hover,
a.button.primary:hover {
  border-color: var(--yellow);
}

button:hover,
a.button:hover {
  color: var(--font-color-bright);
  border-color: var(--button-border-color-hover);
}

button:active,
a.button:active {
  transform: scale(0.95);
}

@media screen and (min-width: 700px) {
  button,
  a.button {
    font-size: 1rem;
    padding: 0.75rem 1rem;
  }
}

/* Navigation */

.navigation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 3;
  background: var(--background-color);
  height: var(--navbar-height-small);
  font-family: var(--font-family-nav);
  border-bottom: 1px solid var(--border-color);
}

.navigation .container {
  display: flex;
  justify-content: space-between;
  height: var(--navbar-height-small);
}

.navigation .nav-wrapper {
  display: flex;
}

.navigation nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  max-width: 350px;
  margin-left: 0.5rem;
}

.navigation a,
.navigation a:hover {
  text-decoration: none;
  background: transparent;
}

.navigation a.item,
.navigation button.item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.25rem 0.15rem;
  gap: 0.5rem;
  font-size: 0.9rem;
  cursor: pointer;
  font-weight: 500;
  color: var(--navbar-color);
  border-radius: var(--border-radius);
  border: 1px solid transparent;
  white-space: nowrap;
}

.navigation a.item.brand {
  font-size: 1rem;
  font-weight: 600;
  color: var(--font-color-bright);
  line-height: 1;
  padding: 0;
}

.navigation a.item.brand span {
  display: none;
  white-space: nowrap;
}

@media screen and (min-width: 500px) {
  .navigation nav {
    margin-left: 1.5rem;
  }

  .navigation a.item.brand {
    gap: 0.6rem;
  }

  .navigation a.item.brand span {
    display: block;
  }
}

.navigation a.item.brand:hover {
  background: transparent;
}

.navigation a.item:hover,
.navigation button.item:hover {
  color: var(--navbar-color-hover);
}

.navigation a.item.active,
.navigation button.item.active {
  color: var(--font-color-bright);
}

.navigation .nav-item-outer {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.navigation .logo {
  height: 22px;
  width: 22px;
  min-height: 22px;
  min-width: 22px;
}

.navigation .nav-image {
  display: none;
  height: 16px;
  width: 16px;
  min-height: 16px;
  min-width: 16px;
}

.theme-toggle button {
  padding: 0.4rem;
  margin-left: 0.5rem;
}

.theme-toggle button img {
  margin: 0;
}

@media screen and (min-width: 700px) {
  .navigation {
    padding: 1.25rem 0;
    /* position: static; */
    height: auto;
  }

  .navigation,
  .navigation .container {
    height: auto;
  }

  .navigation nav {
    width: auto;
    max-width: 100%;
    margin-left: 1.5rem;
  }

  .navigation .nav-wrapper {
    display: block;
  }

  .navigation .nav-image {
    display: block;
    height: 20px;
    width: 20px;
    min-height: 20px;
    min-width: 20px;
  }

  .navigation a.item {
    font-size: 1rem;
    padding: 0.5rem 0.75rem;
    gap: 0.5rem;
  }

  .navigation a.item.brand {
    display: inline-flex;
    font-size: 1.1rem;
    padding: 0;
    gap: 0.75rem;
  }

  .navigation a.item.brand span,
  .theme-toggle span {
    display: block;
  }

  .navigation a.item.brand:hover {
    background: transparent;
  }

  .navigation a.item:hover,
  .navigation button.item:hover {
    background: var(--button-background-color);
    color: var(--navbar-color-hover);
  }

  .navigation a.item.active,
  .navigation button.item.active {
    background: var(--button-background-color);
    color: var(--font-color-bright);
    border: 1px solid var(--button-border-color);
  }

  .navigation a.item.active:hover,
  .navigation button.item.active:hover {
    border-color: var(--button-border-color-hover);
  }

  .theme-toggle button {
    padding: 0.5rem;
  }
}

/* Card */

.star {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--star);
  font-family: var(--font-family-monospace);
}

.star a {
  color: var(--font-color-muted);
}

.star a:hover {
  color: var(--font-color-bright);
  text-decoration-line: underline;
  text-decoration-thickness: 2px;
}

.stars {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.card {
  border: 1px solid var(--button-border-color);
  border-radius: var(--border-radius);
  background: var(--card-background-color);
  padding: 1rem;
  position: relative;
}

@media screen and (min-width: 700px) {
  .card.anchored {
    padding-bottom: 3.5rem;
  }

  .card.anchored.large {
    padding-bottom: 5rem;
  }
}

.card a.card-header,
.card h2 {
  display: block;
  font-size: 1rem;
  line-height: 1.3;
  font-family: var(--font-family-base);
  font-weight: 500;
  color: var(--font-color-heading);
  padding: 0;
  border: 0;
  text-decoration: none;
  margin-bottom: 0.5rem;
}

.card a.card-header:hover,
.card h2:hover {
  text-decoration-line: underline;
  text-decoration-thickness: 2px;
  color: var(--font-color-bright);
}

.card p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--font-color-muted);
  font-family: var(--font-family-base);
}

.card.single {
  padding: 1.5rem;
}

.card.single p {
  margin: 0 0 1.5rem;
}

.card time {
  color: var(--card-time-color);
  margin-bottom: 0.3rem;
}

.card.muted {
  border: 1px solid transparent;
  padding: 0;
  background: transparent;
  align-items: center;
}

.card.muted .gatsby-image-wrapper {
  height: 30px;
  width: 30px;
  max-height: 30px !important;
  max-width: 30px !important;
}

.card.muted time {
  display: none;
  color: var(--post-time-color);
}

.card.muted h2 {
  margin: 0.25rem 0 1rem;
}

@media screen and (min-width: 700px) {
  .card {
    padding: 1.5rem;
  }

  .card.muted time {
    display: block;
  }

  .card.muted .gatsby-image-wrapper {
    height: 45px;
    width: 45px;
    max-height: 45px !important;
    max-width: 45px !important;
  }

  .card a.card-header,
  .card h2 {
    font-weight: 500;
    font-size: 1.1rem;
  }

  .card.muted {
    background: transparent;
    padding: 0.5rem 0;
    align-items: center;
  }

  .stars {
    top: 1.5rem;
    right: 1.5rem;
  }
}

/* Layout wrapper */

main {
  flex: 1;
}

/* Hero */

.hero-wrapper {
  padding-top: 2rem;
  display: grid;
}

.hero {
  padding: 2rem 0 1rem;
  position: relative;
  overflow: hidden;
  width: 100%;
  order: 2;
}

.hero.index {
  padding: 1rem 0;
}

.decoration {
  display: flex;
  align-items: center;
  order: 1;
}

.hero h1 {
  font-size: 2.2rem;
  line-height: 1.1;
  font-weight: 700;
  color: var(--font-color-heading);
  margin: 0;
}

p.hero-description {
  -webkit-font-smoothing: antialiased;
  margin: 1rem 0;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--font-color-hero-description);
  font-weight: 500;
}

.hero-description a {
  text-decoration: none;
}

.hero-description a:hover,
.hero-description a:hover {
  color: var(--post-color-hover);
  text-decoration-line: underline;
  text-decoration-thickness: 2px;
}

.hero .sub-title {
  color: var(--font-color-muted);
  font-weight: 500;
  font-size: 1.1rem;
}

@media screen and (min-width: 700px) {
  .hero-wrapper {
    padding-top: 0;
    grid-template-columns: 4fr 2fr;
    align-items: center;
    gap: 1.5rem;
  }

  p.hero-description {
    margin: 1.5rem 0 0;
    font-size: 1.2rem;
  }

  .hero {
    padding: 1.5rem 0 1rem;
    order: 1;
  }

  .decoration {
    order: 2;
    justify-content: flex-end;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero.index {
    padding: 5rem 0 3rem;
  }
}

.highlight {
  color: var(--category-link);
}

/* Preview */

.highlight-preview {
  display: grid;
  gap: 0.5rem;
}

@media screen and (min-width: 700px) {
  .highlight-preview {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 1rem;
    column-gap: 1.5rem;
  }
}

.project-preview,
.image-preview {
  display: grid;
  gap: 1rem;
}

.image-preview {
  grid-template-columns: repeat(2, 1fr);
}

.image-thumbnail {
  height: 150px;
}

@media screen and (min-width: 700px) {
  .project-preview {
    grid-template-columns: repeat(2, 1fr);
  }

  .image-preview {
    grid-template-columns: repeat(3, 1fr);
  }

  .image-thumbnail {
    height: 220px;
  }
}

.post-preview .card p {
  margin-bottom: 1.5rem;
}

.post-preview > div {
  flex: 1;
}

.post-preview {
  display: grid;
  gap: 1rem;
}

.post-preview > div {
  flex: 1;
}

.post-preview a.button {
  font-size: 0.9rem;
  padding: 0.5rem 0.6rem;
}

@media screen and (min-width: 700px) {
  .post-preview {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .post-preview a.button {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
  }
}

/* Pages */

.post-content {
  margin-top: 1rem;
}

.page-content a,
.post-content a {
  text-decoration: none;
}

.post-content a:hover {
  background: var(--link);
  color: var(--link-color-hover);
}

.page-content a:hover {
  text-decoration-line: underline;
  text-decoration-thickness: 2px;
  color: var(--post-color-hover);
}

@media screen and (min-width: 700px) {
  .post-content {
    margin-top: 2.5rem;
  }
}

a.anchor,
a.anchor:hover {
  color: var(--link);
  background: transparent !important;
}

a.anchor svg {
  fill: var(--link);
}

a.anchor.before {
  padding-right: 0.5rem;
}

/* Posts */

a.post {
  display: flex;
  gap: 1rem;
  padding: 0.4rem 0;
  background: transparent;
  text-decoration: none;
  border-bottom: 1px solid var(--border-color);
}

a.post:last-of-type {
  border: none;
}

a.post:hover,
a.post:hover h3,
a.post:hover time {
  color: var(--font-color-bright);
}

a.post:hover,
a.post:hover h3 {
  color: var(--post-color-hover);
}

a.post:hover h3 {
  text-decoration-line: underline;
  text-decoration-thickness: 2px;
}

a.post h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--font-color);
  font-weight: 500;
  font-family: var(--font-family-base);
  line-height: 1.3;
}

a.post time {
  display: none;
  color: var(--post-time-color);
  margin-left: auto;
}

@media screen and (min-width: 700px) {
  .posts.newspaper {
    display: grid;
    /* grid-template-columns: 1fr 1fr; */
    column-gap: 2rem;
  }

  a.post time {
    display: block;
  }

  a.post h3 {
    font-size: 1.1rem;
    font-weight: 600;
  }
}

/* Grid */

.grid {
  display: block;
}

.article-content {
  max-width: 100%;
  min-width: 0;
}

.links {
  margin-top: 1rem;
}

/* Sidebar */

.post-sidebar-card {
  border: 1px solid var(--button-border-color);
  background: var(--card-background-color);
  padding: 1rem;
  border-radius: var(--border-radius);
  margin: 1.5rem 0;
}

.post-sidebar h2 {
  color: var(--font-color-heading);
  font-size: 1.1rem;
  border: none;
  margin: 0 0 1rem;
  font-weight: 700;
}

.post-sidebar p,
.post-sidebar ul {
  font-size: 1rem;
}

.post-sidebar p:last-child {
  margin-bottom: 0;
}

.post-sidebar a {
  text-decoration-line: underline;
  text-decoration-thickness: 2px;
}

.post-sidebar a:hover {
  text-decoration: none;
}

@media screen and (min-width: 700px) {
  .post-sidebar-card {
    padding: 1.5rem;
  }

  .post-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .post-sidebar h2 {
    font-size: 1.4rem;
  }
}

.list a {
  background-color: transparent;
  color: var(--font-color-base);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.1rem 0.5rem;
  margin: 0 -0.3rem;
  border-radius: var(--border-radius);
}

.list a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--highlight-color);
  text-decoration: none;
}

/* Tags and categories */

.alphabetical-tags {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.alphabetical-tags:last-child {
  border-bottom: none;
}

.alphabetical-tags h3 {
  width: 30px;
  margin: 0;
  color: var(--primary-color);
}

.tags,
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

a.tag {
  font-size: 0.8rem;
  font-weight: 400;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--button-border-color);
  border-radius: var(--border-radius);
  color: var(--font-color-heading3);
  background: var(--button-background-color) !important;
  text-decoration: none;
}

a.tag:hover {
  color: var(--font-color-bright);
  border-color: var(--button-border-color-hover);
  text-decoration: none;
}

a.tag.active {
  color: var(--highlight-color);
  border-color: var(--highlight-color);
  font-weight: 600;
}

@media screen and (min-width: 700px) {
  .categories.anchored,
  .links.anchored {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
  }
}

a.category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
}

a.category.active {
  color: var(--highlight-color);
}

a.category:hover .count,
a.category.active .count {
  color: var(--highlight-color);
}

.category .name {
  font-size: 0.9rem;
}

.category .count {
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--font-color-muted);
  font-family: var(--font-family-monospace);
}

/* Helpers */

.width.small {
  max-width: var(--content-width--small);
}

.width.medium {
  max-width: var(--content-width--medium);
}

.flex {
  display: flex;
  gap: 1rem;
}

.flex-end {
  display: flex;
  justify-content: flex-end;
}

.space-between {
  justify-content: space-between;
}

.align-center {
  align-items: center;
}

.align-end {
  align-items: flex-end;
}

.desktop-only {
  display: none !important;
}

@media screen and (min-width: 700px) {
  .desktop-only {
    display: flex !important;
  }
}

@media screen and (min-width: 700px) {
  .mobile-only {
    display: none !important;
  }
}

/* Article */

.post-image {
  margin-top: 2rem;
  text-align: center;
}

.header-post-image .gatsby-image-wrapper {
  max-height: 50px;
  max-width: 50px;
}

.post-header {
  padding: 2rem 0 1rem;
}

.post-header h1 {
  margin: 1rem 0 0;
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.2;
}

@media screen and (min-width: 700px) {
  .post-header {
    padding-top: 0;
    padding-bottom: 1rem;
  }

  .header-post-image .gatsby-image-wrapper {
    max-height: 100px;
    max-width: 100px;
  }

  .post-header h1 {
    font-size: 2.6rem;
    line-height: 1.2;
  }
}

.post-header time {
  display: block;
  color: var(--font-color-muted);
  margin-bottom: 0.25rem;
}

/* Footer */

.footer {
  padding: 3rem 0;
  font-family: var(--post-font-family);
}

.footer section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.footer img {
  display: inline-block;
  max-height: 28px;
  width: auto;
}

.footer nav {
  display: flex;
  gap: 1rem;
  margin: 0 1rem;
}

.footer nav img {
  display: inline-block;
  max-height: 18px;
  width: auto;
}

.footer a,
.footer span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--font-color-base);
  font-size: 0.9rem;
}

.footer a:hover {
  text-decoration-line: underline;
  text-decoration-thickness: 2px;
}

.footer a.button {
  color: var(--font-color-base);
}

.footer a.button:hover {
  color: var(--font-color-bright);
  text-decoration: none;
}

/* Gatsby */

.gatsby-resp-image-wrapper {
  margin-left: 0 !important;
}

a.gatsby-resp-image-link {
  background: transparent !important;
}

/* Colors */

.image {
  max-width: 100%;
}

.hero-image {
  max-width: 100px;
}

@media screen and (min-width: 700px) {
  .hero-image {
    width: 200px;
    max-width: 100%;
  }
}

.image-thumbnail {
  border-radius: var(--border-radius);
  width: 100%;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.text-muted {
  color: var(--font-color-muted);
}

.text-medium,
p.text-medium {
  font-size: 1rem;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
  background: var(--scrollbar-track);
}

::-webkit-scrollbar-thumb {
  background: var(--scrollbar-color);
  border-radius: 2px;
}
